/**
 * 自定义类
 * @type {{produceUuid(): string}}
 */

const commonUtil = {
    /**
     * 判断手机端还是pc端
     * true-pc  false-手机端
     * @returns {boolean}
     */
    isPc() {
        let userAgentInfo = navigator.userAgent
        let Agents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod']
        let flag = true
        for (let v = 0; v < Agents.length; v++) {
            if (userAgentInfo.indexOf(Agents[v]) > 0) {
                flag = false
                break
            }
        }
        return flag
    }

}

export default commonUtil
